The phrase "to pay a lawyer" means giving money to a lawyer for their professional services and advice.